package com.tanker.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import com.tanker.base.intercept.MyInterceptor;
@Configuration
public class InterceptorConfig extends WebMvcConfigurationSupport  {
	
	    @Override
	    public void addInterceptors(InterceptorRegistry registry) {
	    	  registry.addInterceptor(new MyInterceptor()).addPathPatterns("/**");       
	    	  super.addInterceptors(registry);
	    }
}
